import request from '../utils'

export interface ILoginData {
	username: string
	password: string
}
export function login(data:ILoginData) {
	return request({
		url: '/api/user/login',
		method: 'post',
		data
	})
}


export function fetchUserList() {
	return request({
		url: '/api/user/list',
	})
}